package com.woniu.dao;

import com.woniu.pojo.DynamicComments;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface DynamicCommentsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DynamicComments record);

    int insertSelective(DynamicComments record);

    DynamicComments selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DynamicComments record);

    int updateByPrimaryKey(DynamicComments record);
@Select("select count(content) from dynamic_comments where dynamic_id=#{dynamicId}")
    Integer selectComentNum(Long dynamicId);
@Delete("delete from dynamic_comments where dynamic_id=#{dynamicId}")
    void deleteComment(Long dynamicId);
}